package com.hsqn.mapper;

import hsqn.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ElderlyMapper {
    int addElderly(Elderly elderly);

    int updateElderly(Elderly elderly);

    int addHealthRecord(HealthRecord healthRecord);

    int upHealthRecord(HealthRecord healthRecord);

    int upEvaluation(HealthRecord healthRecord);

    List<HealthRecord> selectRecord();

    void addAlarm(AlarmInfo alarmInfo);

    List<Elderly> selectElderly();

    List<Long> selectLocationInfoIds();

    void batchDeleteLocation(List<Long> ids);

    void batchInsertLocation(List<LocationInfo> list);

    void addAlarmInfo(AlarmInfo alarmInfo);

    void upAlarmInfo(AlarmInfo alarmInfo);

    void addLog(Log log);
}
